package com.banana.manager.forest.entity.handle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDate;

@TableName("discuss_info")
@Getter
@Setter
@NoArgsConstructor
@ToString
public class DiscussBean {

    @TableId(value = "discuss_id",type = IdType.AUTO)
    private Integer discussId;

    @TableField("discuss_result")
    private String discussResult;
    @TableField("discuss_phd")
    private String discussPhd;
    @TableField("discuss_date")
    private LocalDate discussDate;
    @TableField(exist = false)
    private RecordBean recordBean;

    public DiscussBean(String discussResult, String discussPhd, LocalDate discussDate, RecordBean recordBean) {
        this.discussResult = discussResult;
        this.discussPhd = discussPhd;
        this.discussDate = discussDate;
        this.recordBean = recordBean;
    }

    public DiscussBean(String discussResult, String discussPhd, LocalDate discussDate) {
        this.discussResult = discussResult;
        this.discussPhd = discussPhd;
        this.discussDate = discussDate;
    }
}
